package com.song.boot.applicationListener;

import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Description: ApplicationListenerTest：类描述
 * @author: songzhangyong
 * @Date: 2020/6/1 10:07
 */
@Component
public class ApplicationPreparedEventTest implements ApplicationListener<ApplicationPreparedEvent> {

	@EventListener
	@Override
	public void onApplicationEvent(ApplicationPreparedEvent event) {
		System.out.println("Listener==============ApplicationPreparedEvent：spring boot上下文context创建完成，但此时spring中的bean是没有完全加载完成的。");
	}
}
